﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Entity.Models.dto
{
    /// <summary>
    /// 工作流步骤表DTO
    /// </summary>
    public class WorkFlow_InstanceStepDTO
    {

        /// <summary>
        /// Id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 工作流实例
        /// </summary>
        public string _instanceId { get; set; }
        /// <summary>
        /// 工作流实例id
        /// </summary>
        public string _instanceIds { get; set; }
        
        /// <summary>
        /// 耗材名称
        /// </summary>
        public string _consumableName { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string _reviewerName { get; set; }
        /// <summary>
        /// 审核理由
        /// </summary>
        public string _reviewReason { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public string _reviewStatus { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public string _reviewTime { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime _reviewTimes { get; set; } 
        /// <summary>
        /// 审核时间
        /// </summary>
        public int _outNum { get; set; }
        /// <summary>
        /// 上一个步骤Id
        /// </summary>
        public string _beforeStepId { get; set; }

        public bool _updataStuaus { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public string _createTime { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime _createTimes { get; set; }

        public WorkFlow_InstanceStepDTO(WorkFlow_InstanceStepDTO workFlow_InstanceStepDTO)
        {
            Id = workFlow_InstanceStepDTO.Id;
            _instanceId = workFlow_InstanceStepDTO._instanceId;
            _reviewerName = workFlow_InstanceStepDTO._reviewerName;
            _reviewReason = workFlow_InstanceStepDTO._reviewReason;
            _outNum = workFlow_InstanceStepDTO._outNum;
            _consumableName = workFlow_InstanceStepDTO._consumableName;
            _instanceIds = workFlow_InstanceStepDTO._instanceIds;
            _reviewStatus = workFlow_InstanceStepDTO._reviewStatus;
            _reviewTime = workFlow_InstanceStepDTO._reviewTimes.ToString().EndsWith("0001/1/1 0:00:00") ? "": workFlow_InstanceStepDTO._reviewTimes.ToString("yyyy-mm-dd HH:mm:ss");
            _beforeStepId = workFlow_InstanceStepDTO._beforeStepId;
            _updataStuaus = workFlow_InstanceStepDTO._updataStuaus;
            _createTime = workFlow_InstanceStepDTO._createTimes.ToString("yyyy-mm-dd HH:mm:ss");
        }

        public WorkFlow_InstanceStepDTO()
        {
        }
    }
}
